<!-- 数据词典 -->
<template>
  <div class="page-box h100 display-flex czbj">
    <dxtable
      :dataJson="dataJson"
      :portUrl="portUrl"
      :formJson="formJson"
      :qx="qx"
    ></dxtable>
  </div>
</template>
 <script lang='ts' setup>
import { leixing } from "../../../util/config";
import dxtable from "../../../components/util/dxtable.vue";
import { dxget } from "../../../util/index";
import { h, ref, reactive } from "vue";
let qxList = ref([]);
let dataJson = reactive([
  {
    title: "id",
    key: "id",
    width: 60,
  },
  {
    title: "名称",
    key: "name",
    search: true, // 是否在搜索栏展示
  },
  {
    title: "创建时间",
    key: "addTime",
  },
]);
const qx = {
  DeletePermissionID: "dataDictionarydel", //删除
  EditPermissionIdentifier: "dataDictionarybj", // 编辑
  NewPermissionIdentifier: "dataDictionaryxz", // 新建
  ViewPermissionID: "dataDictionaryck", // 查看
};
// const portUrl = "dxgjAdmin/administrator?CharacterNameCode=" + leixing;
const portUrl = "beRelieved/dictionaries";
let formJson = reactive([
  {
    title: "名称",
    type: "input",
    key: "name",
    required: true, // 是否为必填
  },
  {
    title: "标签",
    type: "Tags",
    key: "dlabel",
    val: [],
    required: true, // 是否为必填
  },
]);
</script>
 <style scoped>
</style>